<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a id="aLink"></a>
<script type="text/javascript">
            let link = document.getElementById('aLink');
            let i = ['https://google.com', 'https://baidu.com'];
            <!--      let q = i[0];-->

            var num = Math.floor(Math.random() * 2);
            let q = i[num];

            <!--      let num = i[q];-->
            <!--      let x = 'http://c.biancheng.net/';-->
            <!--      let y = 'view/5579.html';-->
            <!--      let xy = x + y;-->
            <!--      let s2 = x.concat(y);-->
            <!--      link.href = s2;-->

            link.href = q;
            link.target = "blank";
            link.innerText = 'This is Link';

</script>

<!--        <script type="text/javascript">
            function changeSrc() {
                document.getElementById("myImage").src = "qaq.jpg";
            }
        </script>
        <a href="https://google.com"><img id="myImage" src="qaq.jpg" width="107" height="98"> </a>
 -->

</body>
</html>
